package exception;
/**    
 * zqSoft Automation
 * @File:BusinessException.java
 * @author ylnie    
 * <业务异常处理类>
 * @Notes:
 * @Revision History:
 * <<2014-7-29下午4:13:04>>, <<ylnie>>, <<Create>>      
 */ 
public class BusinessException extends RuntimeException {

	/** serialVersionUID */
	private static final long serialVersionUID = 2332608236621015980L;

	private String code;
	private String message;
	public BusinessException() {
		super();
	}

	public BusinessException(String message) {
		super(message);
		this.message= message;
	}

	public BusinessException(String code, String message) {
		super(message);
		this.message= message;
		this.code = code;
	}

	public BusinessException(Throwable cause) {
		super(cause);
	}

	public BusinessException(String message, Throwable cause) {
	    super(message, cause);
	    this.message= message;
	}

	public BusinessException(String code, String message, Throwable cause) {
		super(message, cause);
		this.code = code;
		this.message= message;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	/**
     * 获取出错信息
     */
	@Override
    public String getMessage() {
        return message;
    }
 
    public void setMessage(String message) {
        this.message = message;
    }

}